<template>
    <div class="error-tip">
        <img src="../../assets/img/error.png" alt="">
        <p>{{ errorData[errorCode] }}</p>
    </div>
</template>

<script>
import errorData from '@/data/error'

export default {
    props: {
        errorCode:Number
    },
    setup(){
        return{
            errorData
        }
    }
}
</script>

<style lang="less" scoped>
.error-tip{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    img{
        width: .5rem;
    }
    p{
        font-size: .14rem;
        color: #999;
        margin-top: .15rem;
    }
}
</style>